<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>网格布局-行列属性</title>
    <style>
        .box{
            display: grid;
            width: 600px;
            height: 600px;
            border:5px solid gray;
            /* grid-template-columns: 200px 200px 200px;
            grid-template-rows: 200px 200px 200px; */

            /* grid-template-columns: 33.33% 33.33% 33.33%;
            grid-template-rows: 33.33% 33.33% 33.33%; */

            /* grid-template-columns: repeat(3, 33.33%);
            grid-template-rows: repeat(3, 33.33%); */

            /* grid-template-columns: repeat(auto-fill, 33.33%);
            grid-template-rows: repeat(auto-fill, 33.33%); */

            /* grid-template-columns: repeat(auto-fill, 33.33%);
            grid-template-rows: repeat(auto-fill, 33.33%); */

            /* grid-template-columns: 100px 1fr 200px;
            grid-template-rows: 100px 1fr 200px; */

            /* grid-template-columns: minmax(100px, 200px) 150px 300px;
            grid-template-rows: minmax(100px, 200px) 200px 300px; */

            grid-template-columns: 100px auto 300px;
            grid-template-rows: 100px auto 300px;
        }
    </style>
</head>
<body>
    <div class="box">
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
        <div>5</div>
        <div>6</div>
        <div>7</div>
        <div>8</div>
        <div>9</div>
    </div>

</body>
</html>